package cn.parllay.dingdangproject.global;

/**
 * Created by sunny on 2017/12/18.
 * 叮店管理API
 */

public class DingStoreAPI {

    private static final String HOST_NAME = "https://dingdian.parllay.cn/";
    private static final String HOST_NAME_TEST = "https://dingdian-ppe.parllay.cn/";
    private static String hostName = HOST_NAME;

    public static void setEnviroment(boolean isProduct){
        hostName = isProduct ? HOST_NAME : HOST_NAME_TEST;
    }


    //登录接口
    public static String login() {
        return hostName + "wxserver/uemploye/checkEmploye";
    }

    //修改登录密码
    public static String modifyUser() {
        return hostName + "wxserver/uemploye/updateEmploye";
    }

    //获取店员接口
    public static String listEmploye() {
        return hostName + "wxserver/uemploye/listEmploye";
    }

    //获取门店列表接口
    public static String getStoreList(){
        return hostName + "wxserver/ustore/getStoreList";
    }

    //获取wxUid
    public static String getWxUid(){
        return hostName + "wxserver/andrapp/getmWxUid";
    }

    /**
     * 客户列表API
     *
     * @return
     */

    //获取全部客户
    public static String getAllCustomers() {
        return hostName + "wxserver/clerk/getAllCustomer";
    }

    //获取浏览客户
    public static String getBrowseCustomers() {
        return hostName + "wxserver/clerk/getBrowseCustomer";
    }

    //获取收藏客户
    public static String getCollectCustomers() {
        return hostName + "wxserver/clerk/getFavoriteCustomer";
    }

    //获取点赞客户
    public static String getLikeCustomers() {
        return hostName + "wxserver/clerk/getLikeCustomer";
    }

    /**
     * 经营数据API
     */

    //获取经营数据顶部数据
    public static String getManagerTopData() {
        return hostName + "wxserver/stat/getManagerTopData";
    }

    //获取回头率等数据
    public static String getManagerCircleVisitorData() {
        return hostName + "wxserver/stat/getManagerCircleVisitorData";
    }

    //获取访客
    public static String getManagerVisitorData() {
        return hostName + "wxserver/stat/getManagerVisitorData";
    }

    //获取商品数据统计
    public static String getManagerProductData() {
        return hostName + "wxserver/stat/getManagerProductData";
    }

    //获取客户数据统计
    public static String getManagerCustomerData() {
        return hostName + "wxserver/stat/getManagerCusotmerData";
    }


    /**
     * 商品API
     */

    //获取商品列表
    public static String getGoodsList() {
        return hostName + "wxserver/goods/selectGoodsListBysSalesclerk";
    }

    //获取商品详情
    public static String getGoodsDetail() {
        return hostName + "wxserver/home/getGoodsDetails";
    }

    //添加商品
    public static String addGoods() {
        return hostName + "wxserver/goods/addGoodsBysSalesclerk";
    }

    //删除商品
    public static String deleteGoods() {
        return hostName + "wxserver/goods/deleteGoodsBysSalesclerk";
    }
    //编辑商品
    public static String updateGoods() {
        return hostName + "wxserver/goods/updateGoodsBysSalesclerk";
    }

    public static String getQiNiuToken() {
        return hostName + "wxserver/imgUpload/upload";
    }


    public static String getQrcode() {
        return hostName + "wxserver/tool/getQRCode_wxProgram";
    }

    /**
     * 将商品同步到发现
     * @return
     */
    public static String sendPost() {
        return hostName + "wxserver/post/sendPost";
    }

    /**
     * 获取内容列表
     * @return
     */
    public static String getContentList() {
        return hostName + "wxserver/post/androidPosts";
    }

    /**
     * 获取朋友圈管理列表
     * @return
     */
    public static String getCircleList() {
        return hostName + "wxserver/post/androidPosts";
    }
    //发送消息
    public static String sendMsg(){
        return HOST_NAME_TEST + "/dingchat/chat/androidMsg";
    }

    //获取叮店数据
    public static String getStoreData(){
        return HOST_NAME_TEST + "/wxserver/mycenter/visitorAndGoodsCount";
    }
    //获取叮店数据
    public static String getStoreChartData(){
        return HOST_NAME_TEST + "/wxserver/mycenter/getCartogram";
    }

    //获取叮店数据
    public static String getStoreDetailsData(){
        return HOST_NAME_TEST + "/wxserver/home/getStoreDetails";
    }



}
